$(function() {
	$('#next_web').click(function() {
		window.location.href = './Calligraphy.html';
	});
	var count1 = 0;
	$('#div1').click(function() {
		if (count1 == 0) {
			count1++;
			$('#img1').css('transform', 'rotateY(180deg)');
		} else {
			count1 = 0;
			$('#img1').css('transform', '');
		}
	});
	var count2 = 0;
	$('#div2').click(function() {
		if (count2 == 0) {
			count2++;
			$('#img2').css('transform', 'rotateX(180deg)');
		} else {
			count2 = 0;
			$('#img2').css('transform', '');
		}
	});
	var count3 = 0;
	$('#div3').click(function() {
		if (count3 == 0) {
			count3++;
			$('#img3').css('transform', 'rotateY(-180deg)');
		} else {
			count3 = 0;
			$('#img3').css('transform', '');
		}
	});
	$('#href1').click(function() {
		window.location.href = './DanceDetail1.html';
	});
	$('#href2').click(function() {
		window.location.href = './DanceDetail2.html';
	});
	$('#href3').click(function() {
		window.location.href = './DanceDetail3.html';
	});
	$('#head_protraint').click(function() {
		window.location.href = './index.html';
	});
	
});
